<div class="bg-light lter b-b wrapper-md">
  <h1 class="m-n font-thin h3">财务管理</h1>
</div>

<div class="wrapper-md">
  <div class="panel panel-default">
    <div class="panel-heading">
      富民手动退款记录
    </div>
    <toaster-container toaster-options="{'position-class': 'toast-center', 'close-button':true}"></toaster-container>
    <div class="panel-body b-b b-light" ng-controller="DatepickerDemoCtrl">
        <div class="col-sm-2">
            <label><font><font>用户ID:</font></font></label>
            <input type="text" class="form-control ng-pristine ng-untouched ng-invalid ng-invalid-required" name="" ng-model="refundData.UserId"
                required="">
        </div>
        <div class="col-sm-2">
            <label><font><font>姓名:</font></font></label>
            <input type="text" class="form-control ng-pristine ng-untouched ng-invalid ng-invalid-required" name="" ng-model="refundData.UserName"
                required="">
        </div>
        <div class="col-sm-2">
            <label><font><font>电话:</font></font></label>
            <input type="text" class="form-control ng-pristine ng-untouched ng-invalid ng-invalid-required" name="" ng-model="refundData.Mobile"
                required="">
        </div>
         <div class="col-sm-2">
          <label><font><font>类型:</font></font></label>
          <select name="" id="" class="form-control" ng-model="refundData.UserType">
            <option value="3">全部</option>
            <option value="1">富民</option>
            <option value="2">汇付</option>
          </select>
        </div>
        <div class="form-group pull-in clearfix">
          <div class="col-sm-12">
            <button class="btn btn-info btn-addon" style="margin-top:25px" ng-if='!graybtn' ng-click="search()">查询</button>
            <button class="btn btn-light btn-addon" style="margin-top:25px" ng-if='graybtn'>查询</button>
          </div>
        </div>
        <div class="col-sm-12">
          <p style="margin-right: 20px;margin-top: 15px;" class="pull-left"><b>退款金额合计: </b><span ng-bind="totalMoney.toFixed(2)+'元'"></span></p>
          <p style="margin-right: 20px;margin-top: 15px;" class="pull-left"><b>已退款金额：</b><span ng-bind="TotalHAmount.toFixed(2)+'元'"></span></p>
          <p style="margin-top: 15px;" class="pull-left"><b>未退款金额：</b><span ng-bind="TotalWAmount.toFixed(2)+'元'"></span></p>
          <a href="{{gourl}}" ng-if="getRefundtList!=''" target="_blank" ng-click="export()" class="btn btn-info btn-addon pull-right">导出</a>
        </div>  
    </div>
    <div class="table-responsive">
      <table id="tab" class="table table-striped m-b-none">
        <thead>
          <tr>              
            <th style="min-width: 110px">ID</th>
            <th style="min-width: 101px">姓名</th>
            <th style="min-width: 100px">电话</th>
            <th style="min-width: 100px">身份证</th>
            <th style="min-width: 100px">类型</th>
            <th style="min-width: 100px">手动退款金额</th>
            <th style="min-width: 100px">已退款金额</th>
            <th style="min-width: 100px">银行名称</th>
            <th style="min-width: 100px">银行卡号</th>
            <th style="min-width: 100px">操作</th>
          </tr>
        </thead>
        <tbody>
          <tr ng-if="getRefundtList=='' || getRefundtList==null">
            <td colspan="9">当前无任何数据</td>
          </tr>
          <tr ng-if="getRefundtList!=''" ng-repeat="obj in getRefundtList">
            <td ng-bind="obj.UserId"></td>
            <td ng-bind="obj.FullName "></td>
            <td ng-bind="obj.Mobile "></td>
            <td ng-bind="obj.IdCard "></td>
            <td ng-bind="obj.UserType?'富民':'汇付'"></td>
            <td ng-bind="obj.wAmount"></td>
            <td ng-bind="obj.hAmount"></td>
            <td ng-bind="obj.BankName "></td>
            <td ng-bind="obj.CardNo"></td>
            <td>
              <button class="btn m-b-xs btn-sm btn-info" ng-click="refund(obj.MoveId)" ng-if="obj.wAmount!=0">完成退款</button>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
  <div class="btn-group pull-right">
    <button type="button" class="btn btn-default" ng-click="prev()"><font><font>上一页</font></font></button>
    <button type="button" class="btn btn-default btnNum">{{refundData.Index}}</button>
    <button type="button" class="btn btn-default" ng-click="next()"><font><font>下一页</font></font></button>
    <span class="btn btn-default">共<span ng-bind="getRefundtTotal+'条数据'"></span></span>
  </div>
